/**
 * 
 */
package web.common.entity;

import java.util.Date;
import java.util.List;

/**
 * 项目名称：ebs 
 * @ClassName: Company
 * @author ZK JIA<br>
 * 创建时间： 2013-11-6 下午09:56:51<br>
 * @version 1.1<br>
 * 描述: TODO(公司)<br>
 */

public class Company extends BaseEntity{
	
	

	/**
	
	* <p>Title: </p>
	
	* <p>Description: </p>
	
	* @param createTime
	* @param updateTime
	* @param createBy
	* @param companyCode
	* @param userCode
	* @param companyName
	* @param responsible
	* @param responsiblePhone
	* @param contact
	* @param telePhone
	* @param mobile
	* @param status
	* @param introductionCode
	* @param address
	* @param companyEmail
	* @param areaCode
	* @param makeTime
	* @param area
	* @param articles
	* @param products
	* @param images
	
	*/
	public Company(Date createTime, Date updateTime, String createBy,
			String companyCode, String userCode, String companyName,
			String responsible, String responsiblePhone, String contact,
			String telePhone, String mobile, String status,
			String introductionCode, String address, String companyEmail,
			String areaCode, Date makeTime, Area area, List<Article> articles,
			List<Product> products, List<Image> images) {
		super(createTime, updateTime, createBy);
		this.companyCode = companyCode;
		this.userCode = userCode;
		this.companyName = companyName;
		this.responsible = responsible;
		responsible_phone = responsiblePhone;
		this.contact = contact;
		this.telePhone = telePhone;
		this.mobile = mobile;
		this.status = status;
		this.introductionCode = introductionCode;
		this.address = address;
		this.companyEmail = companyEmail;
		this.areaCode = areaCode;
		this.makeTime = makeTime;
		this.area = area;
		this.articles = articles;
		this.products = products;
		this.images = images;
	}
	private String companyCode;
	private String userCode;//用户编码
	private String companyName;
	private String responsible;//责任人
	private String responsible_phone;//责任人电话
	private String contact;//联系人
	private String telePhone;
	private String mobile;//联系人手机
	private String status;//公司状态
	private String introductionCode;//简介编码
	private String address ;//地址
	private String  companyEmail;//公司邮箱
	private String areaCode;
	private Date makeTime;//成立时间
	
	private Area area;
	
	private List<Article> articles;
	List<Product> products;
	List<Image> images;
	public String getCompanyCode() {
		return companyCode;
	}
	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}
	public String getUserCode() {
		return userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public String getResponsible() {
		return responsible;
	}
	public void setResponsible(String responsible) {
		this.responsible = responsible;
	}
	public String getResponsible_phone() {
		return responsible_phone;
	}
	public void setResponsible_phone(String responsiblePhone) {
		responsible_phone = responsiblePhone;
	}
	public String getContact() {
		return contact;
	}
	public void setContact(String contact) {
		this.contact = contact;
	}
	public String getTelePhone() {
		return telePhone;
	}
	public void setTelePhone(String telePhone) {
		this.telePhone = telePhone;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getIntroductionCode() {
		return introductionCode;
	}
	public void setIntroductionCode(String introductionCode) {
		this.introductionCode = introductionCode;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getCompanyEmail() {
		return companyEmail;
	}
	public void setCompanyEmail(String companyEmail) {
		this.companyEmail = companyEmail;
	}
	public String getAreaCode() {
		return areaCode;
	}
	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}
	public Date getMakeTime() {
		return makeTime;
	}
	public void setMakeTime(Date makeTime) {
		this.makeTime = makeTime;
	}
	public Area getArea() {
		return area;
	}
	public void setArea(Area area) {
		this.area = area;
	}
	public List<Article> getArticles() {
		return articles;
	}
	public void setArticles(List<Article> articles) {
		this.articles = articles;
	}
	public List<Product> getProducts() {
		return products;
	}
	public void setProducts(List<Product> products) {
		this.products = products;
	}
	public List<Image> getImages() {
		return images;
	}
	public void setImages(List<Image> images) {
		this.images = images;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((companyCode == null) ? 0 : companyCode.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Company other = (Company) obj;
		if (companyCode == null) {
			if (other.companyCode != null)
				return false;
		} else if (!companyCode.equals(other.companyCode))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Company [address=" + address + ", area=" + area + ", areaCode="
				+ areaCode + ", articles=" + articles + ", companyCode="
				+ companyCode + ", companyEmail=" + companyEmail
				+ ", companyName=" + companyName + ", contact=" + contact
				+ ", images=" + images + ", introductionCode="
				+ introductionCode + ", makeTime=" + makeTime + ", mobile="
				+ mobile + ", products=" + products + ", responsible="
				+ responsible + ", responsible_phone=" + responsible_phone
				+ ", status=" + status + ", telePhone=" + telePhone
				+ ", userCode=" + userCode + "]";
	}
	
	
	
	
	
	
}
